package com.lemonPiggy.UDForm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotEmpty;

/**
 * 页面权限对象 form_diy_authorize
 * 
 * @author ruoyi
 * @date 2021-08-02
 */
public class UDFormAuthorize extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 乐观锁 */
    private String id;

    /** 创建人 */

    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新人 */

    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedTime;

    /** 页面表id */
    @NotEmpty(message = "页面id不能为空")
    @Excel(name = "页面表id")
    private String webPageId;

    /** 授权id */
    @NotEmpty(message = "授权id不能为空")
    @Excel(name = "授权id")
    private String authorizeId;

    /** 权限类型 1:用户id,2:角色id */
//    @NotEmpty(message = "权限类型不能为空")
    @Excel(name = "权限类型 1:用户id,2:角色id")
    private String authorizeType;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }
    public void setWebPageId(String webPageId) 
    {
        this.webPageId = webPageId;
    }

    public String getWebPageId() 
    {
        return webPageId;
    }
    public void setAuthorizeId(String authorizeId) 
    {
        this.authorizeId = authorizeId;
    }

    public String getAuthorizeId() 
    {
        return authorizeId;
    }
    public void setAuthorizeType(String authorizeType) 
    {
        this.authorizeType = authorizeType;
    }

    public String getAuthorizeType() 
    {
        return authorizeType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .append("webPageId", getWebPageId())
            .append("authorizeId", getAuthorizeId())
            .append("authorizeType", getAuthorizeType())
            .toString();
    }
}
